package com.example.jjc.rxjava_retrofit2_demo.network.api_interface;

import com.example.jjc.rxjava_retrofit2_demo.model.Item;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/16.
 */

public interface ZhuangbiApi {
    /**
     * 请求图片
     * @param query
     * @return
     */
    @GET("search")
    Observable<List<Item>> search(@Query("q") String query);//url后缀传递参数
}
